package com.kob.kobbackend.service.impl;

import com.kob.kobbackend.consumer.WebSocketServer;
import com.kob.kobbackend.service.pk.StartGameService;
import org.springframework.stereotype.Service;

@Service
public class StartGameServiceImpl implements StartGameService {
    @Override
    public String startGame(Integer aId,Integer aBotId, Integer bId,Integer bBotId) {
        System.out.println("开始游戏 "+aId+" "+aBotId+" "+bId+" "+bBotId);
        WebSocketServer.startGame(aId,aBotId, bId,bBotId);
        return "开始游戏成功";
    }
}
